package mi.payment.settings;

import java.io.Serializable;

import mi.payment.BuildConfig;
import mi.payment.constants.Configs;

/**
 * 交易密码
 *
 * @author sunmi on 2017/2/10.
 */
public class TransactionInputPwd implements Serializable {

    // 文件无变化
    private static final long serialVersionUID = 2666157781326946751L;

    public final static String TRANSACTION_INPUT_PSD = "TransactionInputPwd";

    private boolean consumptionRevokePsd = Configs.getInstance().CONSUMPTION_REVOCATION_INPUT_PASSWORD();               // 消费撤销密码
    private boolean fieldAuthRevokePsd = Configs.getInstance().PRE_AUTH_REVOCATION_INPUT_PASSWORD();                    // 预授权撤销密码
    private boolean fieldAuthCompleteRevokePsd = Configs.getInstance().PRE_AUTH_COMPLETE_REVOCATION_INPUT_PASSWORD();   // 预授权完成撤销密码
    private boolean fieldAuthCompleteReqPsd = Configs.getInstance().PRE_AUTH_COMPLETE_INPUT_PASSWORD();                 // 预授权完成（请求）密码 1需要0不需要.....默认1

    @Override
    public String toString() {
        return "TransactionInputPwd{" +
                "consumptionRevokePsd=" + consumptionRevokePsd +
                ", fieldAuthRevokePsd=" + fieldAuthRevokePsd +
                ", fieldAuthCompleteRevokePsd=" + fieldAuthCompleteRevokePsd +
                ", fieldAuthCompleteReqPsd=" + fieldAuthCompleteReqPsd +
                '}';
    }

    public boolean isConsumptionRevokePsd() {
        return consumptionRevokePsd;
    }

    protected void setConsumptionRevokePsd(boolean consumptionRevokePsd) {
        this.consumptionRevokePsd = consumptionRevokePsd;
    }

    public boolean isFieldAuthRevokePsd() {
        return fieldAuthRevokePsd;
    }

    protected void setFieldAuthRevokePsd(boolean fieldAuthRevokePsd) {
        this.fieldAuthRevokePsd = fieldAuthRevokePsd;
    }

    public boolean isFieldAuthCompleteRevokePsd() {
        return fieldAuthCompleteRevokePsd;
    }

    protected void setFieldAuthCompleteRevokePsd(boolean fieldAuthCompleteRevokePsd) {
        this.fieldAuthCompleteRevokePsd = fieldAuthCompleteRevokePsd;
    }

    public boolean isFieldAuthCompleteReqPsd() {
        return fieldAuthCompleteReqPsd;
    }

    protected void setFieldAuthCompleteReqPsd(boolean fieldAuthCompleteReqPsd) {
        this.fieldAuthCompleteReqPsd = fieldAuthCompleteReqPsd;
    }

}
